package edu.spec.rxz.week09.class2;

public class Master {
    List pets;

    public Master() {
    }

    public Master(List pets) {
        this.pets = pets;
    }

    void feed(IPet pet){
        pet.cry();	//动物饿了就会叫，而且所有的叫声叫了个遍。
        pet.eat();	//主人很好，让宠物把爱吃的食物吃了个遍。对eat的实现，参考cry。
    }

    public List getPets() {
        return pets;
    }

    public void setPets(List pets) {
        this.pets = pets;
    }
}